package modelLayer;
/**
 * Person is a class that defines a person.
 * @author group 6 - Stefan Patatu, Stan Cosmin Madalin, Monika Vyšniauskaitė, Larowski Michal, Njogu Alex, Cristian Moldovan
 */
public class Person {
    private int ID;
    private String name;
    private String address;
    private String postalCode;
    private String city;
    private String phone;

    /**
     * Create a Person object.
     * @param name The name of the person.
     * @param address The address of the person.
     * @param postalCode The postal code of the person.
     * @param city The city of the person.
     * @param phone The phone number of the person.
     */
    public Person(String name, String address, String postalCode, String city, String phone){
        this.name = name;
        this.address = address;
        this.postalCode = postalCode;
        this.city = city;
        this.phone = phone;
    }
    
    /**
     * Set a given ID for a person.
     * @param incrementedID The ID of a person.
     */
    public void setID(int incrementedID) {
        this.ID = incrementedID;
    }
    /**
     * Get the id of a person.
     * @param ID The ID of a person.
     */
    public int getID() {
        return ID;
    }
    
    /**
     * Set a given name of a person.
     * @param name The name of a person.
     */
    public void setName(String name) {
        this.name = name;
    }
    /**
     * Get the name of a person.
     * @param name The name of a person.
     */
    public String getName() {
        return name;
    }
    
    /**
     * Set a given address of a person.
     * @param address The address of a person.
     */
    public void setAddress(String address) {
        this.address = address;
    }
    /**
     * Get the address of a person.
     * @param address The address of a person.
     */
    public String getAddress() {
        return address;
    }
    
    /**
     * Set the postal code of a person.
     * @param postalCode The postal codeof a person.
     */
    public void setPostalCode(String postalCode) {
        this.postalCode = postalCode;
    }
    /**
     * Get the postal code of a person
     * @param postalCode The postal code of a person
     */
    public String getPostalCode() {
        return postalCode;
    }
    
    /**
     * Set a given city of a person.
     * @param city The city of a person.
     */
    public void setCity(String city) {
        this.city = city;
    }
    /**
     * Get the city of a person.
     * @param city The city of a person.
     */
    public String getCity() {
        return city;
    }
    
    /**
     * Set a given phone of a person.
     * @param phone The phone number of a person.
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }
    /**
     * Get the phone of a person.
     * @param phone The phone number of a person.
     */
    public String getPhone() {
        return phone;
    }
    
}
